﻿using System;
using System.Data.SqlClient;

namespace Universe.SimpleQueue
{
    [Serializable]
    public class Message
    {
        public String Id { get; set; }
        public String OptionalKey{ get; set; }
        public String QueueName{ get; set; }
        public byte[] Payload{ get; set; }
        public DateTime CreatedAt{ get; set; }
        public DateTime ModifiedAt{ get; set; }
        public DateTime? AckDate{ get; set; }
        public int HandlersCount{ get; set; }
        public bool Locked{ get; set; }

        [Serializable]
        public class Status
        {
            public String Id { get; set; }
            public String QueueName { get; set; }
            public DateTime CreatedAt { get; set; }
            public DateTime ModifiedAt { get; set; }
            public DateTime? AckDate { get; set; }
            public int HandlersCount { get; set; }
            public bool Locked { get; set; }
            
        }

    }
}